package com.cuanbo.dualscreenteachfu.utils;

import android.os.Build;

/**
 * 识别安卓版本工具类
 */
public class AndroidVersionUtil {

    public static String get() {
        switch (Build.VERSION.SDK_INT) {
            case Build.VERSION_CODES.ICE_CREAM_SANDWICH:
                return "4.0";
            case Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1:
                return "4.03";
            case Build.VERSION_CODES.JELLY_BEAN:
                return "4.1";
            case Build.VERSION_CODES.JELLY_BEAN_MR1:
                return "4.2";
            case Build.VERSION_CODES.JELLY_BEAN_MR2:
                return "4.3";
            case Build.VERSION_CODES.KITKAT:
                return "4.4";
            case Build.VERSION_CODES.KITKAT_WATCH:
                return "4.4W";
            case Build.VERSION_CODES.LOLLIPOP:
                return "5.0";
            case Build.VERSION_CODES.LOLLIPOP_MR1:
                return "5.1";
            case Build.VERSION_CODES.M:
                return "6.0";
            case Build.VERSION_CODES.N:
                return "7.0";
            case Build.VERSION_CODES.N_MR1:
                return "7.1";
            case Build.VERSION_CODES.O:
                return "8.0";
            case Build.VERSION_CODES.O_MR1:
                return "8.1";
            case Build.VERSION_CODES.P:
                return "9";
            case Build.VERSION_CODES.Q:
                return "10";
            case 30:
                return "11";
            case 31:
                return "12";
            case 32:
                return "12_V2";
            case 33://Build.VERSION_CODES.TIRAMISU:
                return "13";
            case 34://Build.VERSION_CODES.UPSIDE_DOWN_CAKE:
                return "14";
        }
        return "未知";
    }

}
